#ifndef ROW_H_
#define ROW_H_

#include "GraphicalComposite.h"
#include "Block.h"

class Row : public GraphicalComposite
{
public:
    Row(long id, int rowNo);
    virtual ~Row();

    void handleAddBlockToRowEvent(long rowId, const Position& position, const Color& color);
    void handleMoveRowEvent(long rowId);

    void runFadeOutAnimation(long rowId);

protected:
    void handleEvent(const Event& event);

private:
    Blocks blocks;
};

#endif
